---当附近没有友军存在时，攻击提高30%，命中提高50%
---@class BuffEffect420004100:BaseBuffEffect
BuffEffect420004100 = ClientFight.CreateClass("BuffEffect420004100",ClientFight.BaseBuffEffect)
local t = BuffEffect420004100
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...}
    local fighter = buff.target
    local fightTeam = fight.teams[fighter.teamIndex];
    local effectValues = buff.buffBean.f_BuffEffectValue
    local configDis = Utils.toRatio(effectValues[1]);
    local contais = false;
    for k, f in pairs( fightTeam.fighters) do
        local continue = false
        if (f:isDie()) then
            continue = true;
        end
        if (f == fighter) then
            continue = true;
        end
        if (f.summons and not f:isRealSummons()) then
            continue = true;
        end
        if (not continue and DistanceUtil.countDistance(fighter.position, f.position) <= configDis) then
            contais = true;
            break;
        end
    end
        buff.attributes.attributes = {}
    if (not contais) then
        buff.attributes.attributes.put(effectValues[2], effectValues[3]);
        buff.attributes.attributes.put(effectValues[4], effectValues[5]);
        SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]Fighter %s buff%s 不存在友军,触发增加属性",
        fight.frame, fighter.fighterId, buff.modelId));
    end
    ClientFight.BaseBuffEffect.action(self,fight, buff, ...);
    return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
end
t.New()